﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ImageWeb.Models
{
    /// <summary>
    /// 登录模型
    /// </summary>
    public class LoginModel
    {
        /// <summary>
        /// 工号
        /// </summary>
        [Required(ErrorMessage = "必须输入{0}")]
        [StringLength(10, MinimumLength = 1, ErrorMessage = "{0}长度为{2}-{1}个字符")]
        [Display(Name = "工号")]
        public string userNum { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "必须输入{0}")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "{0}长度{2}-{1}个字符")]
        [Display(Name = "密码")]
        public string Password { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>

        [Display(Name = "验证码")]
        public string valicode { get; set; }
    }
}